import { createSSRApp } from "vue";
import tmui from "./tmui"
import App from "./App.vue";
import { setupStore } from '@/state';
import { setupRouter } from '@/router';
export function createApp() {
  const app = createSSRApp(App);
  setupRouter(app);
  // Configure store
  setupStore(app);
  app.use(tmui, { shareDisable: false } as Tmui.tmuiConfig)
  return {
    app
  };
}
